import request from "@/utils/request";

// 获取帮助列表
export function getHelpListApi(query) {
  return request({
    url: '/system/help/list',
    method: 'post',
    params: query
  })
}

// 删除帮助
export function deleteHelpApi(helpIds) {
  return request({
    url: `/system/help/${helpIds}`,
    method: "delete"
  })
}

// 获取帮助详情
export function getHelpDetailApi(helpIds) {
  return request({
    url: `/system/help/${helpIds}`,
    method: "post"
  })
}

// 新增帮助
export function saveHelpApi(data = {}) {
  return request({
    url: `/system/help`,
    method: "post",
    data
  })
}

// 修改帮助
export function updateHelpApi(data = {}) {
  return request({
    url: `/system/help`,
    method: "put",
    data
  })
}